//
//  MCMySubDaywagesNewModel.h
//  TLYL
//
//  Created by MC on 2018/1/9.
//  Copyright © 2018年 TLYL01. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "MCGetSubDaywagesNewModel.h"
//获取自己和下级的日结契约及规则列表 （新制度）
//请求URL：
//
///web-api/api/v4/my_sub_daywages_new
@interface MCMySubDaywagesNewModel : NSObject

@property(nonatomic,strong) void(^callBackSuccessBlock)(id manager);
@property(nonatomic,strong) void(^callBackFailedBlock)(id manager,NSString *errorCode);
- (void)refreashDataAndShow;

- (instancetype)initWithDic:(NSDictionary *)dic;

@end
//DwTypeId    是    Int    日结类型，从get_system_type中获取
//SubUserId    是    Int    下级用户 ID


@interface MCMySubDaywagesNewDataModel : NSObject

@property(nonatomic,strong) NSString * PageCount;
@property(nonatomic,strong) NSString * DataCount;
@property(nonatomic,strong) NSString * isAllowSign;
@property(nonatomic,strong) NSString * GrantRemark;
@property(nonatomic,strong) NSString * MaxProportion;//    Number    签订规则最大值 见备注1
@property(nonatomic,strong) NSString * StatisticModeCode;
@property(nonatomic,strong) NSArray  * MyInfoList;
@property(nonatomic,strong) NSArray  * SubInfoList;
@property(nonatomic,strong) NSArray  * RuleList;

/*
    关于 StatisticModeCode 的说明（StatisticModeCode 有两种情况）：
    当 StatisticModeCode =3 ，则代表比例显示方式，【我的日结】【下级日结】的展示，前端需乘以100，加%显示。
    当 StatisticModeCode =4 ，则代表跳跃显示方式，【我的日结】【下级日结】的展示，前端需要取值后乘以10000，再做展示，不加%。
*/

@end

/*

"data":{
    "PageCount": 0,
    "DataCount": 0,
    "isAllowSign":false,
    "GrantRemark":"消费",
    "MyInfoList": [
                   {
                       "UserID": 16521,
                       "UserName": "becky",
                       "MyProportion": 0.003,
                       "MyDwStandard": "每天【0.3%】的日结",
                       "MyRuleId": 6,
                       "MyDwTypeId": 4
                   }
                   ],
    "SubInfoList": [
                    {
                        "UserID": 16528,
                        "UserName": "00789",
                        "MyProportion": 0.001,
                        "MyDwStandard": "每天【0.1%】的日结",
                        "MyRuleId": 4,
                        "MyDwTypeId": 4
                    }
                    ],
    "RuleList": [
                 {
                     "ID": 4,
                     "DayWageStandard": "每天【0.1%】的日结",
                     "DayWagesProportion": 0.001,
                     "DaySales": 50000,
                     "ActiveNumber": 200
                 },
                 {
                     "ID": 5,
                     "DayWageStandard": "每天【0.2%】的日结",
                     "DayWagesProportion": 0.002,
                     "DaySales": 2,
                     "ActiveNumber": 3
                 }
                 ]
}
*/















